<template>
  <el-table :data="tableData" border style="width: 100%">
    <el-table-column prop="id" label="id"> </el-table-column>
    <el-table-column prop="username" label="用户名"> </el-table-column>
    <el-table-column prop="password" label="密码"> </el-table-column>
    <el-table-column prop="roleid" label="权限"> </el-table-column>
    <el-table-column prop="isfreeze" label="冻结"> </el-table-column>
    <el-table-column fixed="right" label="操作" width="100">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small"
          >查看</el-button
        >
        <el-button type="text" size="small">编辑</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
import users from "@/assets/data/users.json";
export default {
  data() {
    console.log("sss", users);

    return {
      tableData: users,
    };
  },
};
</script>
